<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="XSD">
      <schema location="../xsd/add_pre_credit_table.xsd"/>
      <rootElement name="PrecreditoffersCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/add_pre_credit"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="XSD">
      <schema location="../xsd/add_pre_credit_table.xsd"/>
      <rootElement name="PrecreditoffersCollection" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/top/add_pre_credit"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.5.0(build 110418.1550.0174) AT [WED DEC 31 12:40:13 PST 2014]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/add_pre_credit"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl ns0 xsd bpws xp20 mhdr bpel oraext dvm hwf med ids bpm xdk xref ora socket ldap">
  <xsl:template match="/">
    <ns0:PrecreditoffersCollection>
      <xsl:for-each select="/ns0:PrecreditoffersCollection/ns0:Precreditoffers">
        <ns0:Precreditoffers>
          <ns0:uniqueid>
           <xsl:value-of select="oraext:sequence-next-val('unique_seq','jdbc/SOADataSource')"/>
          </ns0:uniqueid>
          <xsl:if test="ns0:lastname">
            <ns0:lastname>
              <xsl:if test="ns0:lastname/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:lastname/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:lastname"/>
            </ns0:lastname>
          </xsl:if>
          <xsl:if test="ns0:firstname">
            <ns0:firstname>
              <xsl:if test="ns0:firstname/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:firstname/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:firstname"/>
            </ns0:firstname>
          </xsl:if>
          <xsl:if test="ns0:address">
            <ns0:address>
              <xsl:if test="ns0:address/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:address/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:address"/>
            </ns0:address>
          </xsl:if>
          <xsl:if test="ns0:city">
            <ns0:city>
              <xsl:if test="ns0:city/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:city/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:city"/>
            </ns0:city>
          </xsl:if>
          <xsl:if test="ns0:zipcode">
            <ns0:zipcode>
              <xsl:if test="ns0:zipcode/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:zipcode/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:zipcode"/>
            </ns0:zipcode>
          </xsl:if>
          <xsl:if test="ns0:country">
            <ns0:country>
              <xsl:if test="ns0:country/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:country/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:country"/>
            </ns0:country>
          </xsl:if>
          <xsl:if test="ns0:last4Ssn">
            <ns0:last4Ssn>
              <xsl:if test="ns0:last4Ssn/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:last4Ssn/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:last4Ssn"/>
            </ns0:last4Ssn>
          </xsl:if>
          <xsl:if test="ns0:creditcardtype">
            <ns0:creditcardtype>
              <xsl:if test="ns0:creditcardtype/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:creditcardtype/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:creditcardtype"/>
            </ns0:creditcardtype>
          </xsl:if>
          <xsl:if test="ns0:creditcardlimit">
            <ns0:creditcardlimit>
              <xsl:if test="ns0:creditcardlimit/@xsi:nil">
                <xsl:attribute name="xsi:nil">
                  <xsl:value-of select="ns0:creditcardlimit/@xsi:nil"/>
                </xsl:attribute>
              </xsl:if>
              <xsl:value-of select="ns0:creditcardlimit"/>
            </ns0:creditcardlimit>
          </xsl:if>
        </ns0:Precreditoffers>
      </xsl:for-each>
    </ns0:PrecreditoffersCollection>
  </xsl:template>
</xsl:stylesheet>
